package com.ithong.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ithong.model.dto.LoginDTO;
import com.ithong.model.dto.RegisterDTO;
import com.ithong.model.entity.UmsUser;
import com.ithong.model.vo.ProfileVO;

public interface UmsUserService extends IService<UmsUser>{
    /**
     * 注册功能
     * @param dto
     * @return 注册对象
     */
    UmsUser executeRegister(RegisterDTO dto);

    /**
     * 获取用户信息
     * @param username
     * @return
     */
    UmsUser getUserByUsername(String username);

    /**
     * 登录
     * @param dto
     * @return
     */
    String executeLogin(LoginDTO dto);

    /**
     *
     * @param id
     * @return
     */
    ProfileVO getUserProfile(String id);
}
